set number
set ts=8
set shiftwidth=8
set showcmd
set showmatch
"set cindent
set autoindent
set hlsearch
set ru
set wrap
set encoding=utf-8
set wildmode=longest,list
if has("syntax")
	syntax on
endif
set autowrite

"ctags配置
set tags=./tags

"gtags配置
let $GTAGSLABEL = 'native-pygments'
let $GTAGSCONF = '/usr/local/share/gtags/gtags.conf'
set csprg=gtags-cscope
cs add GTAGS

" Uncomment the following to have Vim jump to the last position when
" reopening a file
if has("autocmd")
  au BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g'\"" | endif
endif

"cscope配置
"------------------------------------------------
if has("cscope")
	set csprg=/usr/bin/cscope
	set csto=0
	set cst
	set nocsverb
	" add any database in current directory
	if filereadable("cscope.out")
		cs add cscope.out
	" else add database pointed to by environment
	elseif $CSCOPE_DB != ""
		cs add $CSCOPE_DB
	endif
	set csverb
endif

set cscopequickfix=s-,c-,d-,i-,t-,e-,a-
"------------------------------------------------

"vim 主题
"colorscheme mine
"colorscheme blue
"colorscheme darkblue
"colorscheme default
"colorscheme delek
"colorscheme desert
"colorscheme elflord
"colorscheme evening
"colorscheme industry
"colorscheme koehler
"colorscheme morning
"colorscheme murphy
"colorscheme pablo
"colorscheme peachpuff
"colorscheme ron
"colorscheme shine
"colorscheme slate
"colorscheme torte
"colorscheme zellner

"设置default中不合适的颜色
hi QuickFixLine 	term=underline 		cterm=underline 	ctermfg=red 	ctermbg=none
hi Type   		term=bold 	 	cterm=bold 	 	ctermfg=red
hi Search 		term=standout 		cterm=bold		ctermfg=7 	ctermbg=1 	guifg=White 	guibg=Red

"关闭vim兼容模式并允许进行文件类型检测
set nocp
filetype plugin on

"Vundle配置
"------------------------------------------------
"set nocompatible 		"be iMproved, required
"filetype off 			"required
"set the runtime path to include Vundle and initialize
"set rtp+=~/.vim/bundle/Vundle.vim
"call vundle#begin()
"alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')

" let Vundle manage Vundle, required
"Plugin 'VundleVim/Vundle.vim'
"Bundle 'Valloric/YouCompleteMe'
"Plugin 'Yggdroot/LeaderF'

"The following are examples of different formats supported.
"Keep Plugin commands between vundle#begin/end.

" All of your Plugins must be added before the following line
"call vundle#end() " required
"filetype plugin indent on "required
"To ignore plugin indent changes, instead use:
"filetype plugin on
"
"Brief help
":PluginList - lists configured plugins
":PluginInstall - installs plugins; append `!` to update or just :PluginUpdate
":PluginSearch foo - searches for foo; append `!` to refresh local cache
":PluginClean - confirms removal of unused plugins; append `!` to auto-approve removal
"
"see :h vundle for more details or wiki for FAQ
"Put your non-Plugin stuff after this line
" -----------------------------------------------

"vim-plug配置
" -----------------------------------------------
call plug#begin('~/.vim/bundle')

Plug 'Yggdroot/LeaderF'
Plug 'ludovicchabant/vim-gutentags'
Plug 'mileszs/ack.vim'

call plug#end()
" -----------------------------------------------

"YCM配置
"------------------------------------------------
"let g:ycm_global_ycm_extra_conf = '~/.vim/bundle/YouCompleteMe/third_party/ycmd/.ycm_extra_conf.py'
"let g:ycm_global_ycm_extra_conf = '/home/yinzhongkai/.vim/autoload/youcompleteme.vim'
let g:ycm_global_ycm_extra_conf = '/usr/lib/ycmd/ycm_extra_conf.py'
"let g:ycm_collect_identifiers_from_tags_files = 1
"let g:ycm_enable_diagnostic_signs = 0
let g:ycm_show_diagnostics_ui = 0
"------------------------------------------------

"LeaderF配置
"------------------------------------------------
let g:Lf_ShortcutF = '<C-P>'
let g:Lf_WildIgnore = {
	\ 'dir': ['.svn','.git'],
	\ 'file': ['*.o','*.so','*.a','*.cmd']
	\}
"------------------------------------------------
